﻿using System;

namespace MSTR.IS.Util
{
    public static class Html
    {
        /// <summary>
        /// Replace new lines with "&lt;br/&gt;".
        /// </summary>
        /// <param name="html">String of html.</param>
        public static string ReplaceNewLineChars(string html)
        {
            if (string.IsNullOrEmpty(html))
                return html;

            return html.Replace(Environment.NewLine, "<br/>");
        }
    }
}
